//
//  OrderFooterCell.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/19.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "MeatOrderFooterCell.h"

@implementation MeatOrderFooterCell


#pragma mark - lifecycle methods

- (void)setupUI{
    
    [self addSubview:self.titleLab];
    [self addSubview:self.mySwitch];
}

- (void)setupLayout{
    
    {
        _titleLab.size = CGSizeMake(200, 49);
        _titleLab.mj_x = 15;
        _titleLab.mj_y = 0;
    }
    
    {
        _mySwitch.mj_x = KScreenWidth - 45 - _mySwitch.width;
        _mySwitch.mj_y = (49 - _mySwitch.height)/2.0;
    }
}


#pragma mark - setter methods

#pragma mark - getter methods

- (UILabel *)titleLab{
    
    if (!_titleLab) {
        _titleLab = [UILabel makeLabelWithText:@"设置购买人观看权限" textColor:UIColorFromRGB(0x454545) font:mFont(13) textAliment:0];
    }
    return _titleLab;
}

- (UISwitch *)mySwitch{
    
    if (!_mySwitch) {
        _mySwitch = [UISwitch new];
    }
    return _mySwitch;
}



@end
